//polygon drawing  Claas



#ifndef POLYLINE_H
#define POLYLINE_H



#include "MyDisplay.h"
#include "Line.h"
#include "Matrix.h"
#include <fstream>
#include <math.h>

using namespace std;

class Polyline:public Line{

   public:
   
    Matrix *points;   
   
    Polyline();
    Polyline(const char *fileName,const MyDisplay &another);
    Polyline(const MyDisplay &another);
    Polyline(const Matrix &R);
    
    ~Polyline();
    
    //draw Polyline
     bool draw();
     
     bool draw(const Matrix &T);
     
    // draw Polyline from file
     bool draw(const char *fileName);
     
     bool change(const int x ,const int y = 0);
     
        
 };
 
 #endif
 
 
 
 
